mis estadisticas  --> Por ahora.. metros recorridos

<div id="placeholder" style="width:600px;height:300px;"></div>
<br/>

<script id="source" language="javascript" type="text/javascript">
jQuery.noConflict();
jQuery(function () {
    var d1 = [];
    for (var i = 0; i < 14; i += 0.5)
        d1.push([i, Math.sin(i)]);

    var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];

    // a null signifies separate line segments
    var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
    
    var d4 = [];
    
    var options = {
            xaxis: { mode: "time" }
        };
    
	{% for r in resultados %}
		d4.push([ toTimestamp('{{ r.fecha }}')*1000 , {{ r.metros }} ])
	{% endfor %}
    
    jQuery.plot(jQuery("#placeholder"), [ d4 ] , options);
});

function toTimestamp(strDate){
	 var datum = Date.parse(strDate);
	 return datum/1000;
	}
</script>

<br/>

{% for r in resultados %}
		{{ r.fecha }} ---- {{ r.metros }}
	{% endfor %}


